package com.wll.study.algotiyhm.about_sort;


/**
 * 测试排序算法
 */
public class TestSort {
    public static void displayArr(int[] arr){
        for (int i : arr) {
            System.out.print(i+" ");
        }
        System.out.println();
    }
    public static void main(String[] args) {
        int[] arr = new int[]{5,2,8,4,9,1,1};
        System.out.println("测试选择排序");
        displayArr(SelectSort.selectSort1(arr));
        displayArr(SelectSort.selectSort2(arr));
        System.out.println("测试冒泡排序");
        displayArr(BubbleSort.bubbleSort(arr));
    }
}
